<!DOCTYPE html>
<html>
  <head>
      <meta charset="utf-8">
      <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
      <title>会员中心</title>
      {include file="public/link" /}
      <style type="text/css">
        .layui-table-body{
            overflow: hidden;
        }
        html{
          background: #efefef;
        }
        body{
          background: #efefef;
        }
        .height2{
          background: #efefef;
        }
      </style>
  </head>
  <body>
 
    <div class="maincont">
     {include file="public/user_head" /}

    
      <div class="height2"></div>
      <div class="show_chit">
         <ul> 
              
                <li>
                  <form class="layui-form" action="">
                      <h2>{$order.shoptitle}<i class="i{$order.state}">{$order.state_type}</i></h2>
                      <p><span>商品类型：{$order.pay_type}</span><i>共{$order.num}件商品，合计：{$order.pay_money}</i></p>
                      <time>下单时间：{$order.ordertime}</time>
                      <div class="clearfix"></div>
                      <div class="key">卡密：{$order.key}</div>
                      <div style="margin-top: 10px;"><img src='{$order.bar}' style='width:100%'></div>

                      <div style="text-align: center;"><img src="{$order.qr}"></div>
                      <input type="hidden" value="{$order.shoptitle}" name="title">
                      <input type="hidden" value="{$order.key}" name="key">
                      <input type="hidden" value="{$order.state_type}" name="state_type">
                      <div class="clearfix"></div>
                  </form>
                </li>
              
         </ul>
         <div class="clearfix"></div>
      </div><!--state/-->

     <div class="lrSub">
       <a href="javascript:history.go(-1);">返回</a>
     </div>
     
     <div class="height1"></div>
     {include file="public/footnav" /}
    </div><!--maincont-->
  
    <script src="{$Assets}layui/layui.js?t=1515376178709"></script>

<script>
layui.use(['form', 'layedit', 'laydate','layer'], function(){ 
  var $ = layui.jquery, layer = layui.layer; 
    var form = layui.form
  ,layer = layui.layer
  ,layedit = layui.layedit
  ,laydate = layui.laydate;
  

  //监听提交
  form.on('submit(look)', function(data){
    look=data.field;
    title=look.title;
    key=look.key;
    state_type=look.state_type;
    layer.msg(title+'  ( '+state_type+' )<br>卡密：'+key, {
        time: 30000, //20s后自动关闭
        btn: ['确认'],
        shade: 0.8,
        btnAlign: 'c'
      });
    return false;
  });



  
  $('.vle_order_list .layui-btn').on('click', function(){
    var othis = $(this), method = othis.data('method');
    active[method] ? active[method].call(this, othis) : '';
  });
  
});
</script>




    {include file="public/footer" /}
  </body>
  
</html>